package com.itmuch.cloud.study;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

import com.itmuch.cloud.study.filters.pre.PreRequestLogFilter;

/**
 * @author lrf
 */
@SpringBootApplication
@EnableZuulProxy
public class ZuulApplication {

	public static void main(String[] args) {
		System.out.println("ZuulApplication.main");
		SpringApplication.run(ZuulApplication.class, args);
	}

	@Bean
	public PreRequestLogFilter preRequestLogFilter() {
		System.out.println("ZuulApplication.preRequestLogFilter");
		return new PreRequestLogFilter();
	}
}
